import sys

def f91(N):
    if N >= 101:
        return N - 10
    return 91

def main():   
    input_now = sys.stdin.readlines()
    output_user = ""
    for line in input_now:
        if line == '0': 
            break
        else:
            output_user += 'f91(' + line + ') = ' + str(f91(int(line))) + "\n"
    
    print output_user[-2:]

main()
